<!-- Cập nhật tùy chỉnh trang Company Brandches -->
<style>
	#branches_index_page ul
	{
		list-style:none outside none;
	}
	
	#branches_index_page ul li
	{
		float:left;
		margin-right:25px;	
	}
</style>                     
<div id="index_page" class="index_page">
   		<?php
        if ( !empty($_POST) && wp_verify_nonce($_POST['company_info_branches'],'company_info_branches') )
          {
          		###
          		update_option( 'mySetting_branches_title1',stripslashes($_POST['mySetting_branches_title1']));
          		update_option( 'mySetting_branches_address1',stripslashes($_POST['mySetting_branches_address1']));
          		update_option( 'mySetting_branches_phone1',stripslashes($_POST['mySetting_branches_phone1']));
          		update_option( 'mySetting_branches_site1',stripslashes($_POST['mySetting_branches_site1']));
          		update_option( 'mySetting_branches_email1',stripslashes($_POST['mySetting_branches_email1']));
          		update_option( 'mySetting_branches_fax1',stripslashes($_POST['mySetting_branches_fax1']));
          		update_option( 'mySetting_branches_sales_hour1',stripslashes($_POST['mySetting_branches_sales_hour1']));
          		update_option( 'mySetting_branches_google_map1',stripslashes($_POST['mySetting_branches_google_map1']));
          		###
          		update_option( 'mySetting_branches_title2',stripslashes($_POST['mySetting_branches_title2']));
          		update_option( 'mySetting_branches_address2',stripslashes($_POST['mySetting_branches_address2']));
          		update_option( 'mySetting_branches_phone2',stripslashes($_POST['mySetting_branches_phone2']));
          		update_option( 'mySetting_branches_site2',stripslashes($_POST['mySetting_branches_site2']));
          		update_option( 'mySetting_branches_email2',stripslashes($_POST['mySetting_branches_email2']));
          		update_option( 'mySetting_branches_fax2',stripslashes($_POST['mySetting_branches_fax2']));
          		update_option( 'mySetting_branches_sales_hour2',stripslashes($_POST['mySetting_branches_sales_hour2']));
          		update_option( 'mySetting_branches_google_map2',stripslashes($_POST['mySetting_branches_google_map2']));
          		###
          		update_option( 'mySetting_branches_title3',stripslashes($_POST['mySetting_branches_title3']));
          		update_option( 'mySetting_branches_address3',stripslashes($_POST['mySetting_branches_address3']));
          		update_option( 'mySetting_branches_phone3',stripslashes($_POST['mySetting_branches_phone3']));
          		update_option( 'mySetting_branches_site3',stripslashes($_POST['mySetting_branches_site3']));
          		update_option( 'mySetting_branches_email3',stripslashes($_POST['mySetting_branches_email3']));
          		update_option( 'mySetting_branches_fax3',stripslashes($_POST['mySetting_branches_fax3']));
          		update_option( 'mySetting_branches_sales_hour3',stripslashes($_POST['mySetting_branches_sales_hour3']));
          		update_option( 'mySetting_branches_google_map3',stripslashes($_POST['mySetting_branches_google_map3']));
          ?>
          		<div id="index_message" name="index_message" class="updated">Cập nhật thành công!</div>
          <?php
          }
        ?>
  <h3>Chi nhánh</h3>
   <form action="" method="post" id="branches_index_page" >
   		<ul>
   			<li>
   				<label for="mySetting_branches_title1"><strong>Branch 1:</strong></label><br/>
      			<input type="text" name="mySetting_branches_title1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_title1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_address1"><strong>Address:</strong></label><br/>
      			<input type="text" name="mySetting_branches_address1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_address1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_phone1"><strong>Phone:</strong></label><br/>
      			<input type="text" name="mySetting_branches_phone1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_phone1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_site1"><strong>Website:</strong></label><br/>
      			<input type="text" name="mySetting_branches_site1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_site1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_email1"><strong>Email:</strong></label><br/>
      			<input type="text" name="mySetting_branches_email1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_email1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_fax1"><strong>Fax:</strong></label><br/>
      			<input type="text" name="mySetting_branches_fax1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_fax1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_sales_hour1"><strong>Sales Hours:</strong></label><br/>
      			<input type="text" name="mySetting_branches_sales_hour1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_sales_hour1') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_google_map1"><strong>Google map:</strong></label><br/>
      			<textarea rows="5" cols="50" name="mySetting_branches_google_map1"><?php echo esc_attr( get_option('mySetting_branches_google_map1') ); ?></textarea>
   			</li>
   			
   			<li>
   				<label for="mySetting_branches_title2"><strong>Branch 2:</strong></label><br/>
      			<input type="text" name="mySetting_branches_title2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_title2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_address2"><strong>Address:</strong></label><br/>
      			<input type="text" name="mySetting_branches_address2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_address2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_phone2"><strong>Phone:</strong></label><br/>
      			<input type="text" name="mySetting_branches_phone2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_phone2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_site2"><strong>Website:</strong></label><br/>
      			<input type="text" name="mySetting_branches_site2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_site2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_email2"><strong>Email:</strong></label><br/>
      			<input type="text" name="mySetting_branches_email2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_email2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_fax2"><strong>Fax:</strong></label><br/>
      			<input type="text" name="mySetting_branches_fax2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_fax2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_sales_hour2"><strong>Sales Hours:</strong></label><br/>
      			<input type="text" name="mySetting_branches_sales_hour2" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_sales_hour2') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_google_map2"><strong>Google map:</strong></label><br/>
      			<textarea rows="5" cols="50" name="mySetting_branches_google_map2"><?php echo esc_attr( get_option('mySetting_branches_google_map2') ); ?></textarea>
   			</li>
   			
   			<li>
   				<label for="mySetting_branches_title3"><strong>Branch 3:</strong></label><br/>
      			<input type="text" name="mySetting_branches_title3" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_title3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_address3"><strong>Address:</strong></label><br/>
      			<input type="text" name="mySetting_branches_address3" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_address3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_phone3"><strong>Phone:</strong></label><br/>
      			<input type="text" name="mySetting_branches_phone3" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_phone3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_site3"><strong>Website:</strong></label><br/>
      			<input type="text" name="mySetting_branches_site3" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_site3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_email3"><strong>Email:</strong></label><br/>
      			<input type="text" name="mySetting_branches_email3" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_email3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_fax3"><strong>Fax:</strong></label><br/>
      			<input type="text" name="mySetting_branches_fax1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_fax3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_sales_hour3"><strong>Sales Hours:</strong></label><br/>
      			<input type="text" name="mySetting_branches_sales_hour1" size="55"  value="<?php echo esc_attr( get_option('mySetting_branches_sales_hour3') ); ?>"/><br/><br/>
      			
      			<label for="mySetting_branches_google_map3"><strong>Google map:</strong></label><br/>
      			<textarea rows="5" cols="50" name="mySetting_branches_google_map3"><?php echo esc_attr( get_option('mySetting_branches_google_map3') ); ?></textarea>
   			</li>
   		</ul>  
   	    
    <input type="submit" name="list_yahoo_name_submit" value="Cập nhật" style="border-style:outset;border-width: 2px;font-weight: bold" /></p>
    <?php wp_nonce_field('company_info_branches','company_info_branches'); ?>

   </form>		           
</div>